package cn.damai.search.baseService;

import cn.damai.model.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface BaseUserService {

    User getUserById(@RequestParam("id") Long id);

    List<User>	getUserListByMap(@RequestParam Map<String, Object> param);

    Integer getUserCountByMap(@RequestParam Map<String, Object> param);

    Integer qdtxAddUser(@RequestBody User User);
 
    Integer qdtxModifyUser(@RequestBody User User);

    User checkloginByPassword(User dmUser);

    String generateToken(User user);
}
